package com.yuanduan.mplus.model;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by cj on 2016/5/28.
 * Email:781806481@qq.com
 */
public class DBOpenHelper extends SQLiteOpenHelper {
    private static final String CREATE_USER="create table User("
            +"_id integer primary key autoincrement,"
            +"id integer,"
            +"userPhone text,"
            +"userPwd text,"
            +"realName text,"
            +"userHead text,"
            +"userType text,"
            +"carTeamId text,"
            +"lockCarId text,"
            +"idcard text,"
            +"age text,"
            +"attributionId text,"
            +"professional text,"
            +"createTime text,"
            +"carNumber text,"
            +"carTeamName text,"
            +"sex integer,"
            +"audit integer,"
            +"reason text)";
    public DBOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_USER);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
